package com.yunsom.testdemo.design.decorator;

/**
 * @author Xbao
 * @description
 * @date 2022/6/6 15:33
 */
public class RedShapeDecorator extends ShapeDecorator{

  public RedShapeDecorator(Shape shape){
    super(shape);
  }

  @Override
  public void draw() {
    shape.draw();
    setRedBorder(shape);
  }

  private void setRedBorder(Shape decoratedShape){
    System.out.println("Border color : red");
  }
}
